package com.toommi.refuse.enums;

/**
 * ..
 * 微信用户 异常信息枚举
 *
 * @author yangg
 * @since 2019-07-24 09:52
 */
public enum WechatUserExceptionEnum {
    /**
     * 用户名重复
     */
    INVALID_USERNAME_REPEAT(2001, "该用户名已被使用"),

    INVlLID_USERNAME_FORMAT(2002, "用户名不能为空"),

    INVALID_PASSWORD_FORMAT(2003, "密码不能为空,且长度不能小于6"),

    INVALID_PHONE_NULL(2004, "手机号不能为空,且只能为11位数字"),

    INVALID_PHONE_REPEAT(2005, "该手机号已被使用"),

    INVALID_USER_NULL(2006, "用户不存在"),

    INVALID_OPENID_NULL(2007, "微信用户信息不存在"),

    INVALID_VERIFYCODE_NULL(2008, "验证码不能为空"),

    INVALID_USER_REPEAT(2009, "当前微信用户已注册"),

    INVALID_USER_LOCKED(2010, "该账号已被冻结"),

    INVALID_USER_ADDRESS(2011, "用户住址信息错误"),

    INVALID_USER_ADDRESS_AGAIN(2012, "用户已绑定地址信息"),

    INVALID_USER_OPENID_NULL(2013, "openid不能为空"),

    INVALID_USER_OPENID_REPEAT(2014, "该openid已注册"),
    INVALID_USER_OPENID_STATUS(2015, "申请中"),
    INVALID_USER_PASSWORD_NOTMATCH(2016,"用户名或密码不正确"),

    END(9999, "END");

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    WechatUserExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }}
